Skip to content

Patch 2 Patch 1 Swap map → std::map driver_apator08, 162, 172 - #300

Open
ozmatox wants to merge 12 commits into
SzczepanLeon:mainfrom
ozmatox:patch-2
Open

Patch 2 Patch 1 Swap map → std::map driver_apator08, 162, 172#300
ozmatox wants to merge 12 commits into
SzczepanLeon:mainfrom
ozmatox:patch-2

Conversation

@ozmatox

@ozmatox ozmatox commented Dec 18, 2025

Copy link
Copy Markdown

While compiling the esp8266, I get the error "error: reference to 'map' is ambiguous"
(nodemcuv3+cc1101)
Classic name conflict in the ESP8266 (Arduino)
The compiler sees two different things named map:
std::map from C++ ()
the map() function from Arduino
long map(long, long, long, long, long);
On the ESP8266, Arduino.h is pulled in very early, messing up the namespace.

The result: lines like:
map<string, pair<int, DVEntry>> vendor_values;
are ambiguous → the compiler doesn't know if it's the map() function or the std::map container.

Wmbus component Apator driver files (driver_apator08, 162, 172)
This isn't usually available on the ESP32—the ESP8266 is more of an "Arduino legacy" approach.
The simplest and correct solution:

Swap map → std::map

Swap string → std::string

Swap pair → std::pair

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants